from django.urls import path,re_path
from . import views
urlpatterns = [
    # 商品列表页子路由
    re_path('^list/(?P<category_id>\d+)/(?P<page_num>\d+)/$',views.ListView.as_view(),name="list"),
    # 配置热销商品子路由
    re_path('^hot/(?P<category_id>\d+)/$',views.HotGoodsView.as_view()),
    # 配置商品详情页子路由
    re_path('^detail/(?P<sku_id>\d+)/$',views.DetailView.as_view(),name="detail"),
    # 统计分类商品访问量
    re_path('^detail/visit/(?P<category_id>\d+)/$',views.DetailVisitView.as_view()),
]
